/**
 * @author : cww
 * @date : 2021/1/4 23:08
 */
public class CoffeeDecorator extends Coffee{
    private Coffee coffee;
    public CoffeeDecorator(Coffee coffee){
        this.coffee = coffee;
    }
    @Override
    public float getCost() {
        return coffee.getCost()+super.getPrice();
    }

    @Override
    public String getDes() {
        return super.getName()+"&&"+coffee.getDes();
    }
}
